<template>
    <div>
        <h1>父组件</h1>
        <my-children :num="num" :car="car" @changeEmit="change"></my-children>
    </div>
</template>

<script setup>
import myChildren from './myChildren.vue';
import { ref } from 'vue'
// 父传子
const num = ref(100)
const car = ref('ccc')
// 接收子组件传递的数据
const change = (val) => {
    console.log(val);
}
</script>

<style lang="scss" scoped>

</style>